Stripe\HttpClient\CurlClient B

Total Complexity 88
Dependencies 8
Dependents 1
Total lines 713
Lines of code 366
Logical lines of code 226
Comment lines 193
Methods 31
Properties 10

Methods 31

Method Rating Maintainability Complexity Lines of code
constructRequest()
B
39 18 59
executeStreamingRequestWithRetries()
A
39 9 75
shouldRetry()
A
53 9 26
executeRequestWithRetries()
A
45 7 43
handleCurlError()
S
50 7 28
sleepTime()
S
58 4 13
hasHeader()
S
65 3 8
resetCurlHandle()
S
69 3 7
useHeadersToDetermineWriteCallback()
S
60 2 14
__construct()
S
70 2 6
closeCurlHandle()
S
71 2 6
parseLineIntoHeaderArray()
S
65 2 8
instance()
S
72 2 6
setConnectTimeout()
S
75 1 4
getEnablePersistentConnections()
S
82 1 3
canSafelyUseHttp2()
S
74 1 4
__destruct()
S
82 1 3
initUserAgentInfo()
S
68 1 7
initCurlHandle()
S
76 1 4
getDefaultOptions()
S
82 1 3
getUserAgentInfo()
S
82 1 3
setEnablePersistentConnections()
S
81 1 3
getTimeout()
S
82 1 3
getEnableHttp2()
S
82 1 3
setEnableHttp2()
S
81 1 3
getRequestStatusCallback()
S
82 1 3
requestStream()
S
68 1 6
request()
S
70 1 5
setRequestStatusCallback()
S
81 1 3
setTimeout()
S
75 1 4
getConnectTimeout()
S
82 1 3